﻿
//------------------------------------------------------------------------------

using System;
using System.ComponentModel.DataAnnotations;

namespace Apps.Models.MIS
{

    public partial class MIS_ArticleModel
    {
        [Display(Name = "ID")]
        public override string Id { get; set; }

        [Required(ErrorMessage = "{0}必须是一个数字")]
        [Display(Name = "模块ID")]
        public override int ChannelId { get; set; }
     

       
        [MaxWordsExpression(50)]
        [NotNullExpression]
        [Display(Name = "栏目ID")]
        public override string CategoryId { get; set; }
        //大类名称
        public  string CategoryName { get; set; }
        //上级ID
        public  string CategoryIdParent { get; set; }
        [NotNullExpression]
        [MaxWordsExpression(100)]
        [MinWordsExpression(5)]
        [Display(Name = "标题")]
        public override string Title { get; set; }

        [MaxWordsExpression(255)]
        [Display(Name = "图片")]
        public override string ImgUrl { get; set; }

        [NotNullExpression]
        [Display(Name = "内容")]
        public override string BodyContent { get; set; }

        [NotNullExpression]
        [IsNumberExpression]//如果填写判断是否是数字
        [Display(Name = "排序号")]
        public override int? Sort { get; set; }

        [NotNullExpression]
        [IsNumberExpression]//如果填写判断是否是数字
        [Display(Name = "点击数")]
        public override int? Click { get; set; }


        [Display(Name = "是否审批")]
        public override int CheckFlag { get; set; }

        [Display(Name = "审批人")]
        public override string Checker { get; set; }
        public  string CheckerName { get; set; }

        [Display(Name = "审批时间")]
        public override DateTime? CheckDateTime { get; set; }

        [Display(Name = "创建人")]
        public override string Creater { get; set; }
        public string CreaterName { get; set; }

        [Display(Name = "创建时间")]
        public override DateTime? CreateTime { get; set; }

        [MaxWordsExpression(300)]
        [Display(Name = "自定义链接")]
        public override string CustomLink { get; set; }

        [Display(Name = "文章类型")]
        public override int IsType { get; set; }

        [Display(Name = "任务")]
        public string Task { get; set; }

    }
}

